package com.tanhua.management.utils;


import com.tanhua.management.pojo.Admin;

public class UserThreadLocal {

    private static final ThreadLocal<Admin> LOCAL = new InheritableThreadLocal<>();

    private UserThreadLocal() {
    }

    public static void set(Admin admin) {

        LOCAL.set(admin);
    }

    public static Admin get() {
        return LOCAL.get();
    }
}
